<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.lmpop.updateHtml.parseHtml.UpdateHtml"%>
<html>
<head>
<title>首页更新设置</title>
<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
<link href="/program/admin/index/css/thickbox.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/thickbox.js"></script>
<script type="text/javascript" src="channelindex.js" charset="UTF-8"></script>
</head>

<body>
<%
		String index_temp="";
		String req_url=request.getHeader("Referer");
		if(request.getParameter("index_temp")!=null)
		{
			index_temp=request.getParameter("index_temp");
		}
		else
		{			
			index_temp="/shop/index.html";			
		}
	 %>
<h1>首页更新设置</h1>
<form action="create_index.jsp" method="post" name=updateForm enctype="multipart/form-data">
  <table width="100%" cellpadding="0" cellspacing="1" border="0" class="listtab">
    <tr>
      <td colspan="2" ><font color="#ff0000">
        <p align="left"><img src="/program/admin/index/images/ban_01.gif" align="absmiddle">提示：选择全部更新，可直接点击首页更新按钮，也可以选择某一项点击首页更新按钮;</p>
        <p align="left">或者选择主页模板，请输入主页位置和生成的页面名称,再点击模板更新按钮。</p>
        </font></td>
    </tr>
    <tr>
      <td align="right" width="10%"> 首页更新选择：<font color="red">*</font></td>
      <td style="height:40px">     
			 <p style="font-size:16px;color:green;font-weight:bold">自营商城：<a href="#" onclick="updateIndex('/shop/index.html','/','index.html')"><img src="/program/admin/index/images/8diansc.gif"></a></p>
			 
	</td>
    </tr>
    <!--
	    <tr>
      <td align="right" width="10%"> 首页更新选择：<font color="red">*</font></td>
      <td>
      
    
        
      <select name="selects">
          <option value="/" selected="selected">全部更新</option>
          <option value="/8diansc/index.html">8点商城</option>
          <option value="/8diansp/index.html">8点商铺</option>
          <option value="/jinseys/index.html">金色钥匙</option>
        </select>
        <input type="button" name="delInfo"  onclick="updateIndex(1)" value="快速更新" class="buttab"/></td>
    </tr>
	-->

    
    
    <!--tr>
      <td colspan="2"></td>
    </tr>
    <tr>
      <td align="right" width="10%"> 选择主页模板：<font color="red">*</font></td>
      <td><input name="index_temp" id="index_temp" value="<%=index_temp %>" type="text" class="inputstyle"/>
        <input type="button" name="delInfo"  onclick="choiceFile()" value="选择文件" class="buttab"/></td>
    </tr>
    <tr>
      <td align="right" width="30%"> 主页位置：<font color="red">*</font></td>
      <td><input name="save_dir" id="save_dir" type="text" value="/" class="inputstyle" /></td>
    </tr>
    <tr>
      <td align="right" width="30%"> 默认页面：<font color="red">*</font></td>
      <td><input name="default_page" id="default_page" type="text" value="index.html" class="inputstyle" />
        <input type="button" name="delInfo"  onclick="updateIndex(2)" value="自定义更新" class="buttab"/></td>
    </tr-->
  </table>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
      <td align="center"><input type="hidden" name="index_path" id="index_path"/>
        <input type="hidden" name="type" id="type" value="1"/></td>
      <td align="left"><div id="backMessage">
          <%if(request.getParameter("backMessage")!=null)out.print( new String(request.getParameter("backMessage").getBytes("iso8859-1"),"UTF-8")); %>
        </div></td>
    </tr>
  </table>
</form>
</body>
</html>
